package com.ys.controller.api.finance;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.ys.service.finance.TcwFinancialTransactionTypeItemService;
import com.ys.vo.R;

/**
 * 
 */
@Controller
@RequestMapping("/api/inter/tcwFinancialTransactionTypeItem")
public class ApiInterTcwFinancialTransactionTypeItemController {

    @Autowired
    private TcwFinancialTransactionTypeItemService tcwFinancialTransactionTypeItemService;

  
    /**
     * 删除
     * @throws Exception
     */
    @PostMapping("/delete")
    @ResponseBody
    public R delete(Long id){

        try {
            return tcwFinancialTransactionTypeItemService.del(id);
        } catch (Exception e) {
            e.printStackTrace();
            return R.error("操作失败，请联系客服");
        }
    }

}
        










